package com.experience.demo06.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("book")
public class BookController {

    @RequestMapping("list")
    public String findList(){
        return "book_list";
    }

    @RequestMapping("admin/manag")
    @Secured("ROLE_ADMIN")
    public String findManagList(){
        return "book_manag";
    }

}
